package com.ruoyi.lottery.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 抽奖对象 tb_lottery
 * 
 * @author LiuWeiChen
 * @date 2025-08-01
 */
public class TbLottery extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 抽奖ID */
    private Long lotteryId;

    /** 抽奖名称 */
    @Excel(name = "抽奖名称")
    private String lotteryName;

    /** 抽奖奖品 */
    @Excel(name = "抽奖奖品")
    private String lotteryPrize;

    /** 抽奖开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "抽奖开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lotteryCreateTime;

    /** 抽奖结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "抽奖结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lotteryEndTime;

    /** 抽奖参加人数 */
    @Excel(name = "抽奖参加人数")
    private Long lotteryJoinNum;

    /** 抽奖规则 */
    @Excel(name = "抽奖规则")
    private String lotteryRules;

    public void setLotteryId(Long lotteryId) 
    {
        this.lotteryId = lotteryId;
    }

    public Long getLotteryId() 
    {
        return lotteryId;
    }

    public void setLotteryName(String lotteryName) 
    {
        this.lotteryName = lotteryName;
    }

    public String getLotteryName() 
    {
        return lotteryName;
    }

    public void setLotteryPrize(String lotteryPrize) 
    {
        this.lotteryPrize = lotteryPrize;
    }

    public String getLotteryPrize() 
    {
        return lotteryPrize;
    }

    public void setLotteryCreateTime(Date lotteryCreateTime) 
    {
        this.lotteryCreateTime = lotteryCreateTime;
    }

    public Date getLotteryCreateTime() 
    {
        return lotteryCreateTime;
    }

    public void setLotteryEndTime(Date lotteryEndTime) 
    {
        this.lotteryEndTime = lotteryEndTime;
    }

    public Date getLotteryEndTime() 
    {
        return lotteryEndTime;
    }

    public void setLotteryJoinNum(Long lotteryJoinNum) 
    {
        this.lotteryJoinNum = lotteryJoinNum;
    }

    public Long getLotteryJoinNum() 
    {
        return lotteryJoinNum;
    }

    public void setLotteryRules(String lotteryRules) 
    {
        this.lotteryRules = lotteryRules;
    }

    public String getLotteryRules() 
    {
        return lotteryRules;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("lotteryId", getLotteryId())
            .append("lotteryName", getLotteryName())
            .append("lotteryPrize", getLotteryPrize())
            .append("lotteryCreateTime", getLotteryCreateTime())
            .append("lotteryEndTime", getLotteryEndTime())
            .append("lotteryJoinNum", getLotteryJoinNum())
            .append("lotteryRules", getLotteryRules())
            .toString();
    }
}
